package com.kaibes.platform.file.server;

import javax.validation.constraints.NotBlank;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;

/**
CREATE TABLE `file_client` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `aes_key` VARCHAR(32) NOT NULL,
  `aes_iv` VARCHAR(16) NOT NULL,
  `user_id` BIGINT DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `aes_key_iv` (`aes_key`, `aes_iv`),
  INDEX `user_id` (`user_id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Data
@Description("客户端信息")
public class FileClient {

    @Description("ID")
    private Integer id;
    @Description("AES密钥")
    @NotBlank
    private String aesKey;
    @Description("AES偏移")
    @NotBlank
    private String aesIv;
    @Description("用户ID")
    private Integer userId;
    
}
